package com.xml.services;

import java.util.List;

import com.xml.dao.LoginDao;
import com.xml.dao.LoginDaoImpl;
import com.xml.domain.Admin;

public class LoginServiceImpl implements LoginService {
	LoginDao ld;

	@Override
	public List<Admin> get_Admin() {
		ld = new LoginDaoImpl();
		return ld.get_Admin();
	}

	@Override
	public boolean checkReader(String userName, String password) {
		ld = new LoginDaoImpl();
		return ld.checkReader(userName, password);
	}

	@Override
	public boolean checkAdmin(String userName, String password) {
		ld = new LoginDaoImpl();
		return ld.checkAdmin(userName, password);
	}

}
